package com.wxjfkg.activiti;

import org.activiti.engine.ProcessEngine;
import org.activiti.spring.SpringProcessEngineConfiguration;
import org.activiti.spring.autodeployment.AutoDeploymentStrategy;

public class WxjfProcessEngineConfiguration extends SpringProcessEngineConfiguration {

	protected void autoDeployResources(ProcessEngine processEngine) {
        if (deploymentResources != null && deploymentResources.length > 0) {
            final AutoDeploymentStrategy strategy = new ConditionalDeploymentStrategy();
            
            strategy.deployResources(deploymentName, deploymentResources, processEngine.getRepositoryService());
        }
    }
	
}
